package cn.com.roy.thread.t3_1_11.stack_2_old;

public class ThreadP extends Thread{
    private MyStack stack;
    public ThreadP(MyStack stack){
        this.stack = stack;
    }
    public void run() {
        while (true){
            stack.push();
        }
    }
}
